package com.xuyuan.interview.scene.api;


import com.xuyuan.interview.scene.entity.Order;
import com.xuyuan.interview.scene.entity.Product;

import java.math.BigDecimal;

public interface Coupon {
    String getCouponName();

    Order applyDiscount(Order order);

    boolean isSatisfied(Order order, Product product, int userLevel);

    BigDecimal findPriority(Order order);
}


